#include <msp430x14x.h>
#include <stdlib.h>
#include <cross_studio_io.h>


void main(void);   //main method
void initRsUART(void);   //initiate the UART for RS232
void initSpiUART(void); //initialize the UART for the SPI
void spiWriteReg(char addr, char value);
char spiReadReg(char addr);
void spiWriteBurst(char addr, char *buffer, char count);
char getRndChar(void); //generate random char
void putChar(char text); //put char in the hyper terminal
void print(char* text);  //print a string of char
void println(char* text); //print a string of char beginning with \n
void clearScreen(void);   //clear screen
